package cn.edu.nju.software.zp13.assignment6.util;

import java.io.InputStream;
import java.util.Scanner;

public class InputStreamToStr {
	public static String run(InputStream in, String charsetName) {
		@SuppressWarnings("resource")
		Scanner s=new Scanner(in,charsetName).useDelimiter("^");
		return s.hasNext()? s.next():"";
	}
}
